package com.chenxi.service.impl;

import com.chenxi.mapper.SysOauthClientMapper;
import com.chenxi.model.SysOauthClient;
import com.chenxi.service.ISysOauthClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service("sysOauthClientService")
public class SysOauthClientServiceImpl implements ISysOauthClientService {

    @Autowired
    private SysOauthClientMapper sysOauthClientMapper;
    @Override
    @Cacheable(value = "oauthCache")
    public SysOauthClient loadClientByClientId(String clientId) {
        return sysOauthClientMapper.findClientByClientId(clientId);
    }
}
